package com.example.takeaway.converter;

import com.example.takeaway.model.bo.Shop;
import com.example.takeaway.model.vo.ShopVO;
import org.mapstruct.Mapper;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/16
 */
@Mapper(componentModel = "spring")
public interface ShopConverter {

    /**
     * 将店铺对象转换为店铺视图对象
     * @param shop 店铺对象
     * @return 店铺视图对象
     */
    ShopVO toShopVO(Shop shop);

}
